import { Button } from 'antd';

import React from 'react';

import { Biz1Props } from '../model/BizProps';


class TransInfoForm extends React.Component<Biz1Props> {

    constructor(props: Biz1Props) {  // 这种写法也可以
        super(props)
        this.state = { loading: false }
    }

    onClick = () => {
        this.props.callBack()
    }

    render() {
        return (
            <div>
                <p> 传值111：{this.props.content} </p>
                <p> 传值222：{this.props.str2} </p>
                <Button onClick={this.onClick} type="primary"> 测试 </Button>
                <p>--------------------------</p>
                {this.props.component}
            </div>
        )
    }
}

export default TransInfoForm    // 组件，直接 export